<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-contestProblem-edit" >
		<input id="id" name="id"th:value="${contestProblem.id}"  type="hidden">
			<div class="form-group">
			<label class="col-sm-3 control-label">题目编号：</label>
			<div class="col-sm-8">
				<input id="problemId" name="problemId"th:value="${contestProblem.problemId}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">赛事编号：</label>
			<div class="col-sm-8">
				<input id="contestId" name="contestId"th:value="${contestProblem.contestId}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">题目名称：</label>
			<div class="col-sm-8">
				<input id="title" name="title"th:value="${contestProblem.title}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">题目序号ABC：</label>
			<div class="col-sm-8">
				<input id="num" name="num"th:value="${contestProblem.num}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">提交次数：</label>
			<div class="col-sm-8">
				<input id="submit" name="submit"th:value="${contestProblem.submit}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">AC次数：</label>
			<div class="col-sm-8">
				<input id="accepted" name="accepted"th:value="${contestProblem.accepted}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">解决次数：</label>
			<div class="col-sm-8">
				<input id="solved" name="solved"th:value="${contestProblem.solved}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">选手：</label>
			<div class="col-sm-8">
				<input id="submitUser" name="submitUser"th:value="${contestProblem.submitUser}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">是否锁定：</label>
			<div class="col-sm-8">
				<!--<input id="defunct"  name="defunct"th:value="${contestProblem.defunct}" class="form-control time-input" type="text"> -->
				<div class="onoffswitch">
					<input type="checkbox" th:checked="${contestProblem.defunct? true : false}" class="onoffswitch-checkbox" id="defunct" name="defunct">
					<label class="onoffswitch-label" for="defunct">
						<span class="onoffswitch-switch"></span>
						<span class="onoffswitch-inner"></span>
					</label>
				</div>
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">绩点：</label>
			<div class="col-sm-8">
				<input id="point" name="point"th:value="${contestProblem.point}" class="form-control" type="text">
			</div>
		</div>
		</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
	var prefix = ctx + "acm/contestProblem";
	$("#form-contestProblem-edit").validate({
		onkeyup: false,
		rules:{
			xxxx:{
				required:true,
			},
		}
	});

	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/editDo", $('#form-contestProblem-edit').serialize());
		}
	}
</script>
</body>
</html>
